package com.example.demo_1106.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName goods_eval
 */
@TableName(value ="goods_eval")
@Data
public class GoodsEval implements Serializable {
    /**
     * 评价编号
     */
    private String orderEvalCode;

    /**
     * 
     */
    private String orderEvalContent;

    /**
     * 
     */
    private String orderEvalGrade;

    /**
     * 
     */
    private String userCode;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        GoodsEval other = (GoodsEval) that;
        return (this.getOrderEvalCode() == null ? other.getOrderEvalCode() == null : this.getOrderEvalCode().equals(other.getOrderEvalCode()))
            && (this.getOrderEvalContent() == null ? other.getOrderEvalContent() == null : this.getOrderEvalContent().equals(other.getOrderEvalContent()))
            && (this.getOrderEvalGrade() == null ? other.getOrderEvalGrade() == null : this.getOrderEvalGrade().equals(other.getOrderEvalGrade()))
            && (this.getUserCode() == null ? other.getUserCode() == null : this.getUserCode().equals(other.getUserCode()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOrderEvalCode() == null) ? 0 : getOrderEvalCode().hashCode());
        result = prime * result + ((getOrderEvalContent() == null) ? 0 : getOrderEvalContent().hashCode());
        result = prime * result + ((getOrderEvalGrade() == null) ? 0 : getOrderEvalGrade().hashCode());
        result = prime * result + ((getUserCode() == null) ? 0 : getUserCode().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", orderEvalCode=").append(orderEvalCode);
        sb.append(", orderEvalContent=").append(orderEvalContent);
        sb.append(", orderEvalGrade=").append(orderEvalGrade);
        sb.append(", userCode=").append(userCode);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}